ioemu: pump SDL events on resize
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 2 May 2008 12:47:46 +0000 (13:47 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 2 May 2008 12:47:46 +0000 (13:47 +0100)
commitb9e99fa85ded716ae54376b3c5f6f78e1a353f03
tree62f1b9cac5209e435d58c21500e68f399258f464
parentdf3a8c64343ff56f1d2588a21a4a566679fdc6d4
ioemu: pump SDL events on resize

When sdl_resize resizes the SDL window, some window manager send back
a ConfigureNotify event, which triggers a SDL_VIDEORESIZE event. That
event, however, is seen only much later, on the next VGA refresh
round. If the guest quickly switches to another resolution in between,
the SDL_VIDEORESIZE event makes us erroneously rescale that new
resolution into the old one.

This patch makes us pump that window manager event, so that no
SDL_VIDEORESIZE event is generated.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
tools/ioemu/sdl.c